<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">

<html>
  <head>
      <title>Views Data - Bitzer</title>
      <!--<link rel="StyleSheet" href="assets/css/style.css" type="text/css" />-->

  </head>
  <body>

      <?php
            
            include("../includes/custom/bal_views.php");


            $bal = new BAL();

            $bal->params = $bal->getQueryStringValues($_SERVER['QUERY_STRING']);

            //$all_current_menu_items = $bal->getCountAtCurrentLevel();

      ?>

       <table data-bitzer-data="true"
              data-bitzer-title="BitzerMobile Views"
              data-bitzer-desc="Views demo"
              data-bitzer-component="fourcells"
              data-bitzer-record-count="5"
              <?php
                if(!isset ($bal->params["recordCount"]) || $bal->params["recordCount"][0] == "N")
                {
              ?>
              data-bitzer-number-of-rows="5"
              data-bitzer-start-index="0"
              <?php
                }
              ?>
              width="100%">

           <?php
                if(isset ($bal->params["recordCount"]) && $bal->params["recordCount"][0] == "Y")
                {
           ?>
                    <tr>
                        <td>Record Count</td>
                        <td>5</td>
                    </tr>

           <?php
                }
                else
                {
           ?>

                    <tr>
                        <th data-bitzer-field="part_no" data-bitzer-key-order="1">Part No</th>
                        <th data-bitzer-field="description">Description</th>
                        <th data-bitzer-field="price">List Price</th>
                        <th data-bitzer-field="last_modified_on">Last Modified On</th>
                    </tr>

                    <tr data-bitzer-pk-name="id"
                        data-bitzer-pk-value="1">
                        <td>00-2202-0</td>
                        <td>Carb Repair Kit</td>
                        <td>39.25</td>
                        <td>2011-05-10 12:55:00 PST</td>
                    </tr>

                    <tr data-bitzer-pk-name="id"
                        data-bitzer-pk-value="2">
                        <td>V1-5005-2</td>
                        <td>Boost Gauge, 0-30 PSI</td>
                        <td>77.22</td>
                        <td>2011-05-10 12:55:00 PST</td>
                    </tr>

                    <tr data-bitzer-pk-name="id"
                        data-bitzer-pk-value="3">
                        <td>V1-5003-0</td>
                        <td>Oil PSI Gauge</td>
                        <td>70.72</td>
                        <td>2011-05-10 12:55:00 PST</td>
                    </tr>

                    <tr data-bitzer-pk-name="id"
                        data-bitzer-pk-value="4">
                        <td>93033203400</td>
                        <td>Lobro 930 CV Joint, EA</td>
                        <td>134.87</td>
                        <td>2011-05-10 12:55:00 PST</td>
                    </tr>

                    <tr data-bitzer-pk-name="id"
                        data-bitzer-pk-value="5">
                        <td>V2-4002-7</td>
                        <td>3 Prong Push-On</td>
                        <td>39.25</td>
                        <td>2011-05-10 12:55:00 PST</td>
                    </tr>
         <?php
                }
         ?>
       </table>
  </body>
</html>